.class Lcom/tendcloud/tenddata/ed$c;
.super Ljava/io/OutputStream;


# instance fields
.field final synthetic a:Lcom/tendcloud/tenddata/ed;


# direct methods
.method private constructor <init>(Lcom/tendcloud/tenddata/ed;)V
    .locals 0

    iput-object p1, p0, Lcom/tendcloud/tenddata/ed$c;->a:Lcom/tendcloud/tenddata/ed;

    invoke-direct {p0}, Ljava/io/OutputStream;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/tendcloud/tenddata/ed;Lcom/tendcloud/tenddata/ed$1;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/tendcloud/tenddata/ed$c;-><init>(Lcom/tendcloud/tenddata/ed;)V

    return-void
.end method


# virtual methods
.method public close()V
    .locals 4

    :try_start_0
    iget-object v0, p0, Lcom/tendcloud/tenddata/ed$c;->a:Lcom/tendcloud/tenddata/ed;

    invoke-static {v0}, Lcom/tendcloud/tenddata/ed;->b(Lcom/tendcloud/tenddata/ed;)Lcom/tendcloud/tenddata/ed$b;

    move-result-object v0

    sget-object v1, Lcom/tendcloud/tenddata/ad$a;->b:Lcom/tendcloud/tenddata/ad$a;

    invoke-static {}, Lcom/tendcloud/tenddata/ed;->c()Ljava/nio/ByteBuffer;

    move-result-object v2

    const/4 v3, 0x1

    invoke-virtual {v0, v1, v2, v3}, Lcom/tendcloud/tenddata/ed$b;->a(Lcom/tendcloud/tenddata/ad$a;Ljava/nio/ByteBuffer;Z)V
    :try_end_0
    .catch Lcom/tendcloud/tenddata/x; {:try_start_0 .. :try_end_0} :catch_0
    .catch Lcom/tendcloud/tenddata/w; {:try_start_0 .. :try_end_0} :catch_1

    :goto_0
    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Lcom/tendcloud/tenddata/x;->printStackTrace()V

    goto :goto_0

    :catch_1
    move-exception v0

    invoke-virtual {v0}, Lcom/tendcloud/tenddata/w;->printStackTrace()V

    goto :goto_0
.end method

.method public write(I)V
    .locals 4

    const/4 v3, 0x1

    const/4 v2, 0x0

    new-array v0, v3, [B

    int-to-byte v1, p1

    aput-byte v1, v0, v2

    invoke-virtual {p0, v0, v2, v3}, Lcom/tendcloud/tenddata/ed$c;->write([BII)V

    return-void
.end method

.method public write([B)V
    .locals 2

    const/4 v0, 0x0

    array-length v1, p1

    invoke-virtual {p0, p1, v0, v1}, Lcom/tendcloud/tenddata/ed$c;->write([BII)V

    return-void
.end method

.method public write([BII)V
    .locals 4

    invoke-static {p1, p2, p3}, Ljava/nio/ByteBuffer;->wrap([BII)Ljava/nio/ByteBuffer;

    move-result-object v0

    :try_start_0
    iget-object v1, p0, Lcom/tendcloud/tenddata/ed$c;->a:Lcom/tendcloud/tenddata/ed;

    invoke-static {v1}, Lcom/tendcloud/tenddata/ed;->b(Lcom/tendcloud/tenddata/ed;)Lcom/tendcloud/tenddata/ed$b;

    move-result-object v1

    sget-object v2, Lcom/tendcloud/tenddata/ad$a;->b:Lcom/tendcloud/tenddata/ad$a;

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v0, v3}, Lcom/tendcloud/tenddata/ed$b;->a(Lcom/tendcloud/tenddata/ad$a;Ljava/nio/ByteBuffer;Z)V
    :try_end_0
    .catch Lcom/tendcloud/tenddata/x; {:try_start_0 .. :try_end_0} :catch_0
    .catch Lcom/tendcloud/tenddata/w; {:try_start_0 .. :try_end_0} :catch_1

    :goto_0
    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Lcom/tendcloud/tenddata/x;->printStackTrace()V

    goto :goto_0

    :catch_1
    move-exception v0

    invoke-virtual {v0}, Lcom/tendcloud/tenddata/w;->printStackTrace()V

    goto :goto_0
.end method
